<?php

    header('Content-Type: text/plain');

/** (lazy) unit test for Cicp_Graph **/

include('../autoload.php');

$graphId = 532;

$graph = new Cicp_Graph($graphId);

// build menu
$menu = new Cicp_Graph_Menu("testmenu1");
// add buttons
$menu->addButton('reset highlights');
$menu->addButton('use all for brightness');
$menu->addButton('delete');
$menu->addButton('use x');
$menu->addButton('use z');
$menu->addButton('use u bla.');
$menu->addButton('use y');

// add menu to graph
$graph->addMenu($menu);

// create node and assign menu to it
$node = $graph->createNode();
$node->assignMenu($menu);

echo $graph;